package main

import "fmt"

func watShadowDefer(i int) (ret int) {
	ret = i * 2
	if ret > 10 {
		ret := 10
		fmt.Println(ret)
		defer func() {
			ret = ret + 1
			fmt.Println(ret)
		}()
	}
	return
}

func main() {
	result := watShadowDefer(50)
	fmt.Println(result)
	a := 1
	for i := 0;i<5;i++ {
		a := a + 1
		a = a * 2
	}

	fmt.Println(a)
}
